﻿<%@ Page Title="Admin Kontaktpersoner" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="adminContactPerson.aspx.cs" Inherits="UCNKompetenceBors.Admin.AdminContactPerson" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="adminWrapper" class="contentSmallWrapper floatLeft">
        <div id="adminSubMenuBox" class="submenuBox floatLeft">
            <div class="subMenuBoxContent">
                <ul>
                    <li>
                        <asp:HyperLink ID="hyLinkAdminDashboard" runat="server" Text="Admin Dashboard"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkUserHandling" runat="server" Text="Brugerhåndtering"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkAdminExchange" runat="server" Text="Køb og Salg"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkNewsHandling" runat="server" Text="Nyhedshåndtering"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkEditInformation" runat="server" Text="Ret Information"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hylinkContactPersons" runat="server" Text="Kontaktpersoner" ForeColor="#FF9933"></asp:HyperLink>
                        <ul>
                            <li>
                                <asp:HyperLink ID="hyLinkCreateContactPerson" runat="server" Text="Opret kontaktperson"></asp:HyperLink></li>
                        </ul>
                    </li>
                    <li><asp:HyperLink ID="hylinkDepartment" runat="server" Text="Afdelinger"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkResetUsers" runat="server" Text="Reset Brugere"></asp:HyperLink></li>
                </ul>
            </div>
        </div>

        <div id="adminContentBox" class="contentBoxSmall floatLeft">
            <div id="adminContentBoxContent">
                <div>
                    <asp:Label ID="lblAdminContentHeader" runat="server" Text="Ansatte" CssClass="contentTitle"></asp:Label>
                </div>
                <br />
                <div id="adminContactPersonTopPagination">
                    <div class="floatLeft">
                        <asp:Panel ID="panTopPagination" runat="server"></asp:Panel>
                    </div>
                    <div class="floatRight">
                        <asp:Label ID="lblResultsPerPage" runat="server" Text="Resultater pr. side: "></asp:Label>
                        <asp:DropDownList ID="ddlResultsPerPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlResultsPerPage_SelectedIndexChanged">
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                            <asp:ListItem>20</asp:ListItem>
                            <asp:ListItem>30</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <div>
                    <asp:GridView ID="gvAdminContactPersons" runat="server" AutoGenerateColumns="False" Width="757px" CssClass="gridSpacing" OnRowDeleting="gvAdminContactPersons_RowDeleting" OnRowEditing="gvAdminContactPersons_RowEditing" OnRowDataBound="gvAdminContactPersons_RowDataBound">
                        <HeaderStyle BackColor="#EFEFEF" Height="40px" />
                        <AlternatingRowStyle BackColor="#EFEFEF" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Label ID="lblContactPersonName" runat="server" Text='<%# Eval("FirstName") + " " + Eval("LastName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Titel" DataField="Title" />
                            <asp:BoundField HeaderText="Afdeling" DataField="Department" />
                            <asp:CommandField DeleteText="Slet" EditText="Redigér" ShowCancelButton="False" ShowDeleteButton="True" ShowEditButton="True" ControlStyle-CssClass="link">
                                <ControlStyle CssClass="link"></ControlStyle>
                            </asp:CommandField>
                            <asp:TemplateField InsertVisible="false" Visible="False">
                                <ItemTemplate>
                                    <asp:Label ID="lblContactPersonID" runat="server" Text='<%# Eval("ContactPersonId") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField InsertVisible="False" Visible="False">
                            <ItemTemplate>
                                <asp:Label ID="lblContactPersonImage" runat="server" Text='<%# Eval("ImageURL") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <div id="adminUserPagination">
                    <asp:Panel ID="panPagination" runat="server"></asp:Panel>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
